package j04arraylist;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;

public class J3 {
    public static void main(String[] args) {
        List<String> l1 = Arrays.asList("aa","bb","cc");
//        System.out.println("l1 = " + l1);

        Iterator<String> it = l1.iterator();
        while (it.hasNext()){
            System.out.println(it.next());
        }

        System.out.println("====");
//        l1.clear();
        System.out.println(l1.isEmpty());

        System.out.println(">>>>>");
        ArrayList<String> arrx = new ArrayList<>();
        System.out.println(arrx.isEmpty());
    }
}
